
import feedparser


class feed:
	
	def __init__(self, feedname=None, url=None ):
		self.feedname = feedname
		self.url = url
		self.ignore_seen = False

	def enclosures(self):
		d = feedparser.parse(self.url)
		for e in d.entries:
			try:
				for c in e.enclosures:
					yield c.url
			except:
				pass

